from django.conf.urls.defaults import patterns, include, url
from django.views.generic import ListView,DetailView
from blog.models import Post,Page

# Uncomment the next two lines to enable the admin:


urlpatterns = patterns('',
#  url(r'^$', ListView.as_view(queryset=Post.objects.all().order_by("-created")[:2],template_name="blog.html")), 
#url(r'^(?P<pk>\d+)$', DetailView.as_view(model=Post,template_name="post.html")),  	
 #url(r'^archives/$', ListView.as_view(queryset=Post.objects.all().order_by("-created"),template_name="archives.html")), 
 # url(r'^(?P<pk>\d+)$', DetailView.as_view(model=Page,template_name="page.html")),  	
 #url(r'^pages/$', ListView.as_view(queryset=Page.objects.all().order_by("-created"),template_name="blog.html")), 
 
 

)